﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Common.Filter;
using YNTK.Dependency;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 查询供应商评价请求模型
    /// </summary>
    [SuppressSniffer]
    public class QuerySupplierEvaluateFilterRequestModel: PageBaseRequestModel
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        [Required(ErrorMessage = "供应商标识不能为空")]
        public string supplierId { get; set; }

        /// <summary>
        /// 评价类型(null全部 0.好评 1.中评 2.差评)
        /// </summary>
        public EvaluateTypeEnum? type { get; set; } = null;

        /// <summary>
        /// 机构id
        /// </summary>
        public string? mechanismId { get; set; } = string.Empty;

        /// <summary>
        /// 评价时间-起
        /// </summary>
        public DateTime? startTime { get; set; } = null;

        /// <summary>
        /// 评价时间-止
        /// </summary>
        public DateTime? endTime { get; set; } = null;
    }
}
